package com.zl.csMall.basic.busFile.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 文件
 * @author: ChenNing
 * @date 2025-10-15 14:56
 */
@Data
@ApiModel(description = "文件 实体")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BusFile implements Serializable {

    private static final long serialVersionUID = 1L;

    private long id;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "附件ID")
    private Long attachmentId;

    @ApiModelProperty(value = "源文件名")
    private String originalName;

    @ApiModelProperty(value = "保存路径")
    private String path;

    private Date createDate;


    public BusFile() {}

    public BusFile(long id, Integer sort, Long attachmentId, String originalName, String path, Date createDate) {
        this.id = id;
        this.sort = sort;
        this.attachmentId = attachmentId;
        this.originalName = originalName;
        this.path = path;
        this.createDate = createDate;
    }
}
